<h2 class="title text-center">Tìm kiếm</h2>

<ul id="search-tab" class="nav nav-tabs" role="tablist">
    <li class="<?php echo $case==PRODUCT_SLUG?'active':''; ?>">
        <a href="#<?php echo PRODUCT_SLUG; ?>" data-case="<?php echo PRODUCT_SLUG; ?>" role="tab" data-toggle="tab">
            Sản phẩm <span class="badge badge-yellow"><?php echo $aTotal['product']; ?></span>
        </a>
    </li>
    <li class="<?php echo $case==POST_SLUG?'active':''; ?>">
        <a href="#<?php echo POST_SLUG; ?>" data-case="<?php echo POST_SLUG; ?>" role="tab" data-toggle="tab">
            Tin tức sự kiện <span class="badge badge-yellow"><?php echo $aTotal['post']; ?></span>
        </a>
    </li>
    <li class="<?php echo $case==RAOVAT_SLUG?'active':''; ?>">
        <a href="#<?php echo RAOVAT_SLUG; ?>" data-case="<?php echo RAOVAT_SLUG; ?>" role="tab" data-toggle="tab">
            Rao vặt <span class="badge badge-yellow"><?php echo $aTotal['raovat']; ?></span>
        </a>
    </li>
</ul>

<div id="search-tab-content" class="tab-content mgt10">
    <div class="tab-pane fade <?php echo $case==PRODUCT_SLUG?'in active':''; ?>" id="<?php echo PRODUCT_SLUG; ?>">
        <?php if(isset($template) && $case==PRODUCT_SLUG) { $this->load->view('frontend/eshopper/pages/search/'.$template.'.html.php'); } ?>
    </div>
    <div class="tab-pane fade <?php echo $case==POST_SLUG?'in active':''; ?>" id="<?php echo POST_SLUG; ?>">
        <?php if(isset($template) && $case==POST_SLUG) { $this->load->view('frontend/eshopper/pages/search/'.$template.'.html.php'); } ?>
    </div>
    <div class="tab-pane fade <?php echo $case==RAOVAT_SLUG?'in active':''; ?>" id="<?php echo RAOVAT_SLUG; ?>">
        <?php if(isset($template) && $case==RAOVAT_SLUG) { $this->load->view('frontend/eshopper/pages/search/'.$template.'.html.php'); } ?>
    </div>
</div>